home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / tosfixes / 38400bps.lzh / mod.txt < prev   
Internet Message Format  |  1994-07-12  |  9KB

  1. From mailer.acns.fsu.edu!usenet.ufl.edu!usenet.fiu.edu!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!sunic!seunet!seunet!cindy!straight!bertil.jagard Tue Jul 12 23:31:40 1994
  2. Path: mailer.acns.fsu.edu!usenet.ufl.edu!usenet.fiu.edu!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!EU.net!sunic!seunet!seunet!cindy!straight!bertil.jagard
  3. From: bertil.jagard@straight.ct.se (Bertil Jagard)
  4. Newsgroups: comp.sys.atari.st.tech
  5. Subject: Re: Four questions: ProTr
  6. Message-ID: <211d9200@straight.ct.se>
  7. Date: Mon, 11 Jul 94 11:21:00 +0200
  8. Sender: news@straight.ct.se
  9. Reply-To: bertil.jagard@straight.ct.se
  10. X-Newsreader:  Blue Wave/QWK v2.12 [JetMail 0.99beta8]
  11. X-Mailer: uugate 0.34 (OS/2 2.10) (Fidonet Gateway)
  12. Organization: Ettans Snus ... no substitute.
  13. Lines: 191
  14.  
  15. In a Message of <07-10-94  07:12> Paulseniura writes:
  16.  
  17.  Pa> A third question for the people who might know:  I'm *very* adept in
  18.  Pa> doing circuit upgrades (practically rebuilt & redesigned my CoCo3
  19.  Pa> system, see).  So I'd like to do the "38400-bps" upgrade which
  20.  Pa> consists of a single 74LS74 chip wired to the MFP.  The IMG drawing &
  21.  Pa> doc was written by Jurgen Meyer & can be found at the Atari FTP
  22.  Pa> archive sites.  Only part of the doc was translated to English.  I've
  23.  Pa> got a 74F74 & switch ready to go if someone could tell me how it's
  24.  Pa> working for you, and what-all does it really affect, etc.
  25.  
  26. Try this modyfication by Flemming B. Nielsen on the MFP.. It's works
  27. perfect and you can controll it so you can shift to the original speed with
  28. a program..
  29.  
  30. Msg #8 / 1-18  Time: 24 Jun 94  00:56:24
  31. From: Flemming B. Nielsen
  32. To  : All
  33. Subj: High Speed Mod ect.
  34. ---------[N.ST.FAX]-----------------------------------------------
  35. This text is for those of you who want a high speed serial port (38400) on
  36. a standard ST(E) and still want to use their modem as a fax reciever.
  37.  
  38. It all started when I decided to do the standard CD4040 modification to my
  39. MFP chip to lock the port at 38400.
  40. Allready at this early stage I encountered my first problem - I didn't have
  41. a 4040 and neither did anybody else in my town.
  42.  
  43. Well I used to do a lot of electonics, so I tried to find a substitute.
  44. All it needed to do was divide by 4, so I settled for a 74LS93 of which I
  45. had plenty.
  46.  
  47. I quickly put my modified modification (wow, what a mod <g>) together and
  48. it worked like a dream.
  49. That is until I tried sending a fax to BT-FAX. +FCON came through without
  50. any problems and BT-FAX started, but then it just stopped dead and did
  51. nothing.
  52. After several tests I came to the conclusion that the fax reciever part of
  53. the modem can't handle 38400, but has to be locked at 19200 for the
  54. fax-transmission to work.
  55.  
  56. Ok, I know that there are some good german mods with several high speeds,
  57. but you had to pay for them - and I would rather build it myself if I could.
  58.  
  59. I ended with a cross between several mods and here is how it works:
  60.  
  61. I used a 74LS157 as switch between the standard MFP clock (just as the ST
  62. was built) and my 38400 mod. The switch is toggled by an unused RTS signal
  63. from the MIDI ACIA (something like TURBORS).
  64.  
  65. When the computer is switched on it defaults to 38400. When a fax comes in
  66. I call a program of my own that takes the name of the 'real' program I want
  67. (BT-FAX) plus its command line as a combined command line.
  68. My program switches the baud rate to standard MFP (should be set at 19200)
  69. and calls BT-FAX. When BT-FAX is done my program reenables the high-speed
  70. mod.
  71.  
  72. It works just as it should - and its cheap.
  73.  
  74. ====================================================================
  75. Here are the schematics:
  76.  
  77. All you need is a 74LS93 and a 74LS157 + some soldering skills!
  78.  
  79. You need to cut pin 16 on the MFP away from the circuit board.
  80.  
  81. MFP (68901)        74LS93              74LS157           MIDI ACIA
  82. xxxxxxxxx       xxxxxxxxxxxxx       xxxxxxxxxxxxx       xxxxxxxxxxxx
  83.      18 x-------x 1       8 x-------x 2       1 x-------x 5        x
  84.         x       x           x       x           x       x          x
  85.         x       x         2 x---+   x           x       xxxxxxxxxxxx
  86.         x       x           x   |   x           x
  87.         x       x         3 x---+---x 15        x
  88.         x       x           x   |   x           x
  89.         x    +--x 5      10 x---+---x 8         x
  90.         x    |  xxxxxxxxxxxxx   |   x           x
  91.         x    |                  |   x           x
  92.         x   VCC                GND  x           x
  93.         x                           x           x
  94.         x                           x           x
  95.      16 x---------------------------x 3         x
  96.         x                           x           x
  97.      10 x---+-----------------------x 4         x
  98.         x   |                       x           x
  99.       7 x---+                       x        16 x---VCC
  100. xxxxxxxxx                           xxxxxxxxxxxxx
  101.  
  102.  
  103.  
  104. In a 1040ST(E) the Midi ACIA is on the right side of the PCB and it is the
  105. one towards the back.
  106.  
  107. ====================================================================
  108. And here is my software (Lattice C 5.5)
  109.  
  110. /****************************************************/
  111. /* set19200.ttp (c)1994 by Digisoft-Denmark         */
  112. /****************************************************/
  113.  
  114. #include <portab.h>
  115. #include <stdio.h>
  116. #include <stddef.h>
  117. #include <stdlib.h>
  118. #include <stdarg.h>
  119. #include <string.h>
  120. #include <stdarg.h>
  121. #include <ctype.h>
  122. #include <xcrun.h>
  123. #include <osbind.h>
  124. #include <errno.h>
  125. #include <dos.h>
  126.  
  127. #define ACIA_MIDI  *(char *)(0xFFFFFC04)
  128. #define TIMER_D    0xD5
  129. #define BAUD38400  0x95
  130.  
  131. void set_baud_clk(int);
  132.  
  133. int main(int argc, char *argv[])
  134. {   int retcode;
  135.  
  136.     set_baud_clk(TIMER_D);      /* enable TIMER_D                   */
  137.  
  138.     argv[argc+1]=NULL;          /* prepare for forkv()              */
  139.     forkv(argv[1],argv+2);      /* call the prog on the commandline */
  140.                                 /* + its parameters                 */
  141.     retcode=wait();             /* get its exit code                */
  142.  
  143.     set_baud_clk(BAUD38400);    /* reenable 38400                   */
  144.     return(retcode);            /* return with the exit code        */
  145. }
  146.  
  147. void set_baud_clk(int clk)
  148. {   long OldSSP=Super(NULL);    /* enter SuperViser mode            */
  149.     ACIA_MIDI=clk;              /* set MIDI RTS                     */
  150.     Super((void *)OldSSP);      /* exit SuperViser mode             */
  151. }
  152.  
  153. ===============================================================
  154.  
  155. In Semper I have 'SET19200.TTP' as the program and
  156. 'BT_FAX.TOS -pM:\ -m -g' as the command line.
  157.  
  158. Note! BT_FAX.TOS & SET19200.TTP should both be in the mailer folder.
  159.  
  160. *****************************************************************
  161. * DON'T atempt this modification if you don't understand it.    *
  162. * I take absolutly NO responsibility whatsoever for anything    *
  163. * that might happen because of this modification.               *
  164. * It works in my STE and no doubt somebody can improve on it.   *
  165. *****************************************************************
  166.  
  167. *****************************************************************
  168. * This text and the ideas shown in it are copyright by me.      *
  169. * You are allowed to use it for whatever you wish as long as    *
  170. * it is credited to me and understood that I take no            * *
  171. responsibility for anything that may happen.                  *
  172. *****************************************************************
  173.  
  174.  
  175. Flemming B. Nielsen
  176. (Digisoft Denmark)
  177. 90:15/0@NeST
  178.  
  179. ==================================================================
  180. Addendum!!!
  181. ==================================================================
  182. A new little problem arised.
  183.  
  184. Semper will not send a EMSI handshake if Sempers portspeed is not
  185. set a 38400 and you get a connect over 19200.
  186. If you use HSMODEM and install the RSVE cookie, the data works fine;
  187. BUT as SEMPER set the speed to 38400 and using HDMODEM the MFP speed
  188. is actualy set at 110 baud - way to low for the fax.
  189. There ar 2 solutions.
  190.  
  191. 1) connect pin 11 from 74LS93 to pin 3 on 74LS157. Don't connect
  192. pin 16 on the MFP to pin 3 on the 74LS157.
  193. Now it will only switch between 19200 and 38400.
  194.  
  195. 2) change HSMODEM to understand my modification or at least install
  196. a new